<?php //TODO:on loading display spinner ?>
<?php echo $ajax->form('/pages/search', null, array('loading' => 'new Effect.Appear(\'spinSearch\')', 'complete' => 'new Effect.BlindDown(\'search\'); new Effect.Fade(\'spinSearch\')', 'update' => 'search')); ?>
	<p>
		<input class="search" type="text" id="SystemSearch" value="" style="width: 100px;" name="data[System][search]"/>
		<span id="spinSearch" class="spinner" style="display:none;" ><?php echo $html->image('system/spinner.gif'); ?></span>
	</p>
<?php echo $form->end(); ?>

<div id="search" style="diplay:none"></div>

<h3><?php echo __('Main'); ?></h3>
<ul>
	<li><?php echo $html->link(__('Home', true), '/'); ?></li>
</ul>

<h3><?php echo __('Categories'); ?></h3>
<?php echo $this->renderElement('menu/categories', array('categories' => $categories)); ?>

<h3><?php echo __('Syndication'); ?></h3>
<ul>
	<li><?php echo $html->link(__('Blog Rss', true), '/pages/index.rss'); ?></li>
</ul>

<h3><?php echo __('Theme switcher'); ?></h3>
<form action="<?php echo $html->url('/theme/switch'); ?>" method="post">
<p>
	<?php echo $form->select('System.theme', array('' => 'none', 'x6tm' => 'x6tm', 'esion' => 'esion'), $this->theme, array('onchange' => 'submit()'), false); ?>
</p>
<?php echo $form->end(); ?>
